#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "nvs_flash.h"
#include "esp_netif.h"
#include "esp_wifi.h"
#include "esp_event.h"

#define WIFI_CONFIG_WOSHI() {              \
    .sta = {                                 \
        .ssid = "CMCC-卧室",                  \
        .password = "13609963014en"          \
    }                                        \
}

#define WIFI_CONFIG_KETING() {              \
    .sta = {                                 \
        .ssid = "CMCC-客厅",                  \
        .password = "13609963014en"          \
    }                                        \
}

typedef enum {
    WOSHI_WIFI = 0, //卧室WIFI
    KETING_WIFI
} wifi_config_local_t;


void connect_wifi(wifi_config_local_t wifi, TaskHandle_t *task_handel);